package com.xykj.sdkdemo;

import android.app.Application;
import android.os.Handler;

public class APP extends Application {

    private static APP mInstance;
    private static Handler mHandler;

    @Override
    public void onCreate() {
        super.onCreate();
        mInstance = this;
        mHandler = new Handler();
    }

    public static APP getInstance() {
        return mInstance;
    }

    public void runOnMainThread(Runnable runnable, Long delayMillis) {
        mHandler.postDelayed(runnable, delayMillis);
    }

}
